package com.biz.primus.account.feign;

import com.biz.primus.base.exception.BizCheckedException;
import com.biz.primus.model.sso.account.vo.UserResVo;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by younger on 17/11/3.
 */
@FeignClient(qualifier = "accountFeignClient",name = "service-sso-auth",fallback = AccountDegradedFeignClient.class)
public interface AccountFeignClient {
    /**
     * 通过用户名调用用户信息
     */
    @GetMapping("soa/userService/getUserResVoById")
    public UserResVo getUserResVoById(@RequestParam(name = "userUnionId") String userUnionId) throws BizCheckedException;

}
